package com.zjitc.dao;

import com.zjitc.model.Category;
import com.zjitc.model.Manage;
import com.zjitc.model.Order;
import com.zjitc.model.Product;
import com.zjitc.model.User;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/5/28 16:49
 * @description:
 */
public interface ManageDao {

  Manage manageLoginByMname(String mname);

  Manage manageLoginByMnameAndMpassword(
      @Param("mname") String mname,
      @Param("mpassword") String mpassword
  );

  List<User> findAllUser();

  void deleteUser(Integer uid);

  List<Category> findOneProduct();

  Category findCid(String cid);

  void updateOneProduct(Category category);

  List<Product> findTwoProduct();

  Product findPid(Integer pid);

  void updateTwoProduct(Product product);

  void deleteTwoProduct(Integer pid);

  List<Order> findOrderList();

}
